package com.lemon.cloud.websocket.holder;

import org.springframework.web.socket.WebSocketSession;

/**
 * @author HuangDS
 */
public interface SessionKeyGenerator {

    String USER_KEY_ATTR_NAME = "USER_KEY_ATTR_NAME";
    /**
     * 获取sessionKey值
     * @param webSocketSession
     * @return
     */
    Object sessionKey(WebSocketSession webSocketSession);
}
